<?php

namespace Common\Model;

use Think\Model;

/**
 * Description of UserModel
 *
 * @author Shangyidong
 */
class Dic_tableModel extends Model {

    //put your code here
    function get_id_by_name($name) {
        if ($name == "") {
            return null;
        }
        $Dic_tableModel = new \Common\Model\Dic_tableModel();
        $dic_table = $Dic_tableModel->where("name = '" . $name . "'")->find();
        return $dic_table;
    }

}
